package org.ym.demo.dao.impl;

import org.hibernate.Session;
import org.springframework.stereotype.Component;

@Component
public class PersonDaoImpl<T> extends BaseDao {

	@Override
	public void save(Object entity) {
		
		Session session = sessionFactory.getCurrentSession();
		System.out.println(session);
		session.save(entity);
	}



}
